# -*- coding:utf-8 -*-
__author__ = 'maruimin'

from django.conf.urls import url
from users.views import UserInfoView, UploadImageView, UpdatePwdView, SendEmailCodeView, UpdateEmailView, MyCourseView
from users.views import MyFavOrgView, MyFavTeacherView, MyFavCourseView, MyMessageView, LogOutView
urlpatterns = [
    url(r'^info/$', UserInfoView.as_view(), name='user_info'),

    # 用户头像上传
    url(r'^image/upload/$', UploadImageView.as_view(), name='image_upload'),

    # 用户个人中心修改密码
    url(r'^update/pwd/$', UpdatePwdView.as_view(), name='update_pwd'),

    # 用户修改邮箱, 发送邮箱验证码
    url(r'^sendemail_code/$', SendEmailCodeView.as_view(), name='sendemail_code'),

    # 用户修改邮箱
    url(r'^update_email/$', UpdateEmailView.as_view(), name='update_email'),

    # 我的课程页面
    url(r'^mycourse/$', MyCourseView.as_view(), name='mycourse'),

    # 我的收藏机构页面
    url(r'^myfav/org/$', MyFavOrgView.as_view(), name='myfav_org'),

    # 我的收藏老师页面
    url(r'^myfav/teacher/$', MyFavTeacherView.as_view(), name='myfav_teacher'),

    # 我的收藏课程页面
    url(r'^myfav/course/$', MyFavCourseView.as_view(), name='myfav_course'),

    # 我的消息页面
    url(r'^mymessage/$', MyMessageView.as_view(), name='mymessage'),

    # 用户退出登录
    url(r'^logout/$', LogOutView.as_view(), name='logout'),
]